package _1_1_Basic;

import org.junit.Test;

/**
 * 四则运算
 */

public class UsualArithmeticOperators {

    @Test
    public void test() {
        System.out.println(15 + 2.0);
        System.out.println(15 - 2.0);
        System.out.println(15 / 2.0);

        // int/int 得到 int
        System.out.println(15 / 2);
        System.out.println(15 % 2);

        System.out.println(20 / 10);
        System.out.println(23 / 10);
        System.out.println(23 % 10);
    }

}
